package com.example.day08;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class ReaderWriter {
    public static void main(String[] args) throws IOException {
        FileReader fileReader = new FileReader("D:/test.txt");
        FileWriter fileWriter = new FileWriter("D:/demo.txt");
        fileWriter.write(fileReader.read()); // 在内存 RAM 中
//        fileWriter.flush();
        fileWriter.close();

        // ?
    }
}
